package com.tensquare.recruit.controller;

import com.tensquare.recruit.service.EnterpriseService;
import common.entity.Result;
import common.entity.StatusCode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Feng.Wang
 * @Company: Zelin.ShenZhen
 * @Description:
 * @Date: Create in 2019/3/23 15:44
 */
@RestController
@RequestMapping("/enterprise")
@CrossOrigin
public class EnterpriseController {
    @Autowired
    private EnterpriseService enterpriseService;

    /**
     * 查询热门企业
     * @return
     */
    @RequestMapping(value = "/search/hotlist",method = RequestMethod.GET)
    public Result findByIshot(){
        return new Result(true, StatusCode.OK,"热门企业查询成功！",
                enterpriseService.findByIshot());
    }
}
